﻿@model DietPlanning.Models.Diet
@{
    ViewBag.Title = "Recommended";
    Layout = "~/Views/Shared/_LayoutUser.cshtml";
}
<h2>
    Recommended</h2>
<div>
    <div class="display-label">
        This is planning we create for you</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CalorieNeed)
    </div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        <fieldset>
            <div class="editor-label">
                @Html.LabelFor(model => model.DietName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DietName)
                @Html.ValidationMessageFor(model => model.DietName)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.DateTimeBegin)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateTimeBegin)
                @Html.ValidationMessageFor(model => model.DateTimeBegin)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.DateTimeEnd)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateTimeEnd)
                @Html.ValidationMessageFor(model => model.DateTimeEnd)
            </div>
            <div class="editor-label">
                Ammount Calories need in one day
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.CalorieNeed)
                @Html.ValidationMessageFor(model => model.CalorieNeed)
            </div>
            <p>
                <input type="submit" value="Xem thực đơn chúng tôi khuyến cáo cho bạn" />
            </p>
        </fieldset>
@*        <div>
            @Html.ActionLink("DietDetail", "DietDetail", new { id = Model.DietID })
        </div>*@
    }
</div>
<div>
    @Html.ActionLink("Back to Overview", "Index")
</div>
